package com.yangj.entity;

import com.thoughtworks.xstream.annotations.*;
import java.util.*;

@XStreamAlias("xml")
public class TextMessage extends BaseMessage
{
    @XStreamAlias("Content")
    private String content;
    
    public String getContent() {
        return this.content;
    }
    
    public void setContent(final String content) {
        this.content = content;
    }
    
    public TextMessage(final Map<String, String> requestMap, final String content) {
        super(requestMap);
        //消息类型为text
        this.setMsgType("text");
        this.content = content;
    }
    
    @Override
    public String toString() {
        return "TextMessage [content=" + this.content + ", getToUserName()=" + this.getToUserName() + ", getFromUserName()=" + this.getFromUserName() + ", getCreateTime()=" + this.getCreateTime() + ", getMsgType()=" + this.getMsgType() + "]";
    }
}
